﻿<%@ Page Title="" Language="C#" MasterPageFile="~/indexmaster.Master" AutoEventWireup="true" CodeBehind="AccountSetting.aspx.cs" Inherits="Web_Demo.AccountSetting" %>
<%@ Register assembly="obout_Interface" namespace="Obout.Interface" tagprefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
    .style2
    {
        text-align: left;
    }
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="content2">
    <table style="position: relative; vertical-align: middle; left: 33.3%;">
        <tr>
            <td class="style2">
                First Name</td>
            <td>
                <asp:TextBox ID="txtFirstName" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style2">
                Last Name</td>
            <td>
                <asp:TextBox ID="TxtLastName" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style2">
                Email</td>
            <td>
                <asp:TextBox ID="txtEmail" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                    ControlToValidate="txtEmail" Display="Dynamic" 
                    ErrorMessage="Please enter yout email (ex: a@b.c)" ForeColor="Red" 
                    SetFocusOnError="True"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                    ControlToValidate="txtEmail" Display="Dynamic" 
                    ErrorMessage="Please enter yout email (ex: a@b.c)" ForeColor="Red" 
                    ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td class="style2">
                <asp:Label ID="lbremail" runat="server" Text="ReEmail"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtReEmail" runat="server"></asp:TextBox>
                <asp:CompareValidator ID="CompareValidator1" runat="server" 
                    ControlToCompare="txtReEmail" ControlToValidate="txtEmail" Display="Dynamic" 
                    ErrorMessage="Email not match" ForeColor="Red"></asp:CompareValidator>
            </td>
        </tr>
        <tr>
            <td class="style2">
                <asp:Button ID="btSave" runat="server" onclick="btSave_Click" 
                    Text="Save Changes" />
            </td>
            <td>
                <asp:Button ID="btedit" runat="server" onclick="btedit_Click" Text="Edit" />
                <asp:Button ID="btCancel" runat="server" Text="Cancel" />
            </td>
        </tr>
    </table>
</div>
</asp:Content>
<asp:Content ID="Content3" runat="server" 
    contentplaceholderid="ContentPlaceHolder2">
        <div style="position: relative; float: left">
        <asp:Menu ID="Menu1" runat="server" BackColor="#B5C7DE" 
            DynamicHorizontalOffset="2" Font-Names="Verdana" Font-Size="0.8em" 
            ForeColor="#284E98" Orientation="Horizontal" StaticSubMenuIndent="10px">
            <DynamicHoverStyle BackColor="#284E98" ForeColor="White" />
            <DynamicMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" />
            <DynamicMenuStyle BackColor="#B5C7DE" />
            <DynamicSelectedStyle BackColor="#507CD1" />
            <Items>
                <asp:MenuItem Text="HomePage" Value="sdfasf" NavigateUrl="~/index.aspx"></asp:MenuItem>
                <asp:MenuItem Text="Document" Value="New Item">
                    <asp:MenuItem Text="MyDocument" Value="MyDocument"></asp:MenuItem>
                </asp:MenuItem>
                <asp:MenuItem Text="User" Value="User">
                    <asp:MenuItem NavigateUrl="~/AccountSetting.aspx" Text="Account Setting" 
                        Value="Account Setting"></asp:MenuItem>
                </asp:MenuItem>
                <asp:MenuItem Text="Manage" Value="Manage">
                    <asp:MenuItem NavigateUrl="~/UserInformation.aspx" Text="User Information" 
                        Value="User Information"></asp:MenuItem>
                </asp:MenuItem>
            </Items>
            <StaticHoverStyle BackColor="#284E98" ForeColor="White" />
            <StaticMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" />
            <StaticSelectedStyle BackColor="#507CD1" />
        </asp:Menu>
        </div>
        <div style="position: relative; float: right">
            
            
        <asp:Label ID = "lbUser" runat = "server" style="font-size: large; color: #FFFFFF"></asp:Label>
        <asp:LinkButton ID = "lbtlogout" runat="server" onclick="lbtlogout_Click">Log Out</asp:LinkButton>
        
        </div>
		</asp:Content>

